-- GENERATED SPELL FOR [Razormane Hunter] --


function spell0_3265(pUnit, Event) --@Razormane Wolf,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(6479,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_3265', 1, 1)
end

function spell1_3265(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3265', 623, 1)
end

function Sorts_3265(pUnit, Event)
local choix_sorts_3265 = math.random(0, 1)
if choix_sorts_3265 == 0 then
pUnit:RegisterEvent('spell0_3265', 1, 1)
end
if choix_sorts_3265 == 1 then
pUnit:RegisterEvent('spell1_3265', 1, 1)
end
end

function mob3265_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3265', math.random(1500, 3000), 1)
end

function mob3265_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3265_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3265_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3265, 1, 'mob3265_Action')
RegisterUnitEvent(3265, 2, 'mob3265_Leave')
RegisterUnitEvent(3265, 3, 'mob3265_Kill')
RegisterUnitEvent(3265, 4, 'mob3265_Die')
